﻿using Volo.Abp.Data;
namespace ERP.Workflow.Designer.Application.Contracts
{
    /// <summary>
    /// 流程设计器，业务的其他字段
    /// </summary>
    public class FlowLinkExtendValue
    {
       // public string? Content { get; set; }
        public string? Expression { get; set; }
    }
    public class LinkDto:IHasExtraProperties
    {
        public Guid Id { get; set; }
        public Guid? TenantId { get; set; }

        public bool Selected { get; set; }
        public string? Color { get; set; }
        public string? SelectedColor { get; set; }
        public double Width { get; set; } = 2.0;


        public string? Paths { get; set; }

        public Guid? SourceNodeId { get; set; }
        public Guid? TargetNodeId { get; set; }
        public Guid? SourcePortId { get; set; }
        public Guid? TargetPortId { get; set; }

        public string? SourceLinkMarkerPath { get; set; }
        public double SourceLinkMarkerWidth { get; set; }
        public string? TargetLinkMarkerPath { get; set; }
        public double TargetLinkMarkerWidth { get; set; }

        public Guid DefinitionId { get; set; }

        public List<LinkVertexDto> Vertices { get; set; } = new List<LinkVertexDto>();
        public List<LinkLabelDto> Labels { get; set; } = new List<LinkLabelDto>();

        public ExtraPropertyDictionary ExtraProperties { get; set; }= new ExtraPropertyDictionary();
        public string? Content { get; set; }
        

    }
}